package com.tang.portal.facade.callback;

import com.github.binarywang.wxpay.bean.notify.WxPayOrderNotifyResult;
import com.github.binarywang.wxpay.exception.WxPayException;
import com.github.binarywang.wxpay.service.WxPayService;
import com.tang.framework.core.domain.HttpResult;
import com.tang.framework.core.facade.Facade;
import com.tang.portal.component.pay.impl.WxPayServiceImpl;
import org.springframework.stereotype.Service;

import jakarta.annotation.Resource;

/**
 * @Author tang jun liang
 * @Date 2023/6/27 21:57
 */
@Service
public class WxCallBackFacade extends Facade {

    @Resource
    private WxPayServiceImpl wxPayService;

    @Resource
    private WxPayService payService;

    /**
     * 支付回调
     * @param xml
     * @return
     */
    public HttpResult<String> pay(String xml) throws WxPayException {
        WxPayOrderNotifyResult wxPayOrderNotifyResult = payService.parseOrderNotifyResult(xml);
        return null;
    }
}
